import request from './request.js'

import qs from 'qs';
//http post请求
export const post = (url, query,headers, timeout) => {
  const config = {
    headers: headers, // 将传递的 headers 参数设置为请求头
    timeout: timeout // 设置超时时间
  };
  return request.post(url, query, config);
};


//http get请求
export const get = (url, query) => {
  return request.get(url, query);
};
